<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="m_head.jsp" %>
<%@page import="com.card.match.*" %>
<%
	String id = request.getParameter("id");
MatchSetting agent = MatchManager.getInstance().getMatchSetting(Integer.parseInt(id));
%>
<body>
	<div data-role="page" id="demo-page">
		<div data-role="header">
	        <h1>比赛详情</h1>
	        <a href="#myPanel" data-icon="bars" data-shadow="false" data-iconshadow="false">菜单</a>
	    </div>
	    <div role="main" class="ui-content">
	    	<form>
				<label for="text" data-theme="e">ID:<%=agent.getId() %></label> </br>
				<label for="text-1" data-theme="e">账号:<%=agent.getName() %></label> </br>
				<label for="text-1" data-theme="e">游戏名称：<%=agent.getGameName()%></label> </br>
				<label for="text-1" data-theme="e">比赛人数：<%=agent.getNum()%></label> </br>
				<label for="text-1" data-theme="e">参赛费：<%=agent.getEnterDiamond()%></label> </br>
				<label for="text-1" data-theme="e">状态：<%=agent.getState()%></label> </br>
			</form>
			<div data-role="controlgroup" data-type="vertical">
			<script type="text/javascript">
				function change_agent(a_id)
				{
					var code = confirm("确认要改变吗?");
					if(code == true) {
						location.href="/GameServer/doActionPhone?action=changematch&id="+a_id;
					}
				}
			</script>
			<input type="button" onclick="change_agent(<%=agent.getId() %>)" value="<%=agent.getIntState()==0?"关闭比赛":"开启比赛" %>">
	    </div>
	    </div>
		<%@include file="m_order.jsp"%>
	</div>
</body>
</html>